import { defHttp } from '@/utils/http/axios';

export function getProcessFormBindList(params) {
  return defHttp.get({ url: '/workflow/processFormBind/list', params });
}

export function getProcessFormBindDetail(id) {
  return defHttp.get({ url: `/workflow/processFormBind/${id}` });
}

export function addProcessFormBind(data) {
  return defHttp.post({ url: '/workflow/processFormBind', data });
}

export function editProcessFormBind(data) {
  return defHttp.put({ url: '/workflow/processFormBind', data });
}

export function deleteProcessFormBinds(idList) {
  return defHttp.delete({ url: `/workflow/processFormBind/batch/${idList.join(',')}` });
} 